package com.macro.mall.service.fallback;

import com.macro.mall.service.ProductService;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


@Component
@Slf4j
public class ProductServiceFallbackFactory implements FallbackFactory<ProductService> {
    @Override
    public ProductService create(Throwable throwable) {
        return new ProductService() {
/*
            @Override
            public BatchMarketSmsTaskSubmitResp batchMarketSmsTaskSubmit(BatchMarketSmsTaskSubmitVO request) {
                log.error("批量营销短信任务提交接口" +  throwable);
                return null;
            }


            @Override
            public ResponseBody upAdvice(String taskId) {
                log.error("营销短信文件上传通知接口" +  throwable);
                return null;
            }*/
        };
    }
}